home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / manageme / tcpdump-.7 / tcpdump- / tcpdump-richard-1.7 / linux-include / netinet / tcpip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  984 b   |  39 lines

  1. /*    @(#)tcpip.h 1.7 88/08/19 SMI; from UCB 7.1 6/5/85    */
  2.  
  3. /*
  4.  * Copyright (c) 1982, 1986 Regents of the University of California.
  5.  * All rights reserved.  The Berkeley software License Agreement
  6.  * specifies the terms and conditions for redistribution.
  7.  */
  8.  
  9. /*
  10.  * Tcp+ip header, after ip options removed.
  11.  */
  12.  
  13. #ifndef _netinet_tcpip_h
  14. #define _netinet_tcpip_h
  15.  
  16. struct tcpiphdr {
  17.     struct     ipovly ti_i;        /* overlaid ip structure */
  18.     struct    tcphdr ti_t;        /* tcp header */
  19. };
  20. #define    ti_next        ti_i.ih_next
  21. #define    ti_prev        ti_i.ih_prev
  22. #define    ti_x1        ti_i.ih_x1
  23. #define    ti_pr        ti_i.ih_pr
  24. #define    ti_len        ti_i.ih_len
  25. #define    ti_src        ti_i.ih_src
  26. #define    ti_dst        ti_i.ih_dst
  27. #define    ti_sport    ti_t.th_sport
  28. #define    ti_dport    ti_t.th_dport
  29. #define    ti_seq        ti_t.th_seq
  30. #define    ti_ack        ti_t.th_ack
  31. #define    ti_x2        ti_t.th_x2
  32. #define    ti_off        ti_t.th_off
  33. #define    ti_flags    ti_t.th_flags
  34. #define    ti_win        ti_t.th_win
  35. #define    ti_sum        ti_t.th_sum
  36. #define    ti_urp        ti_t.th_urp
  37.  
  38. #endif /*!_netinet_tcpip_h*/
  39.